package com.tensquare.rabbitmq.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 分裂模式消费
 *
 * @author 11752
 */
@Component
@RabbitListener(queues = "test3")
public class FanoutCustomer3 {

    @RabbitHandler
    public void getMsg(String msg) {
        System.out.println("test3消费：" + msg);
    }
}
